<?php
/**
 * @link https://ym2.cleverstone.top
 * @copyright Copyright (c) 2020 Yii Manager Software LLC
 */

use builder\helper\H5;
use builder\helper\Url;
use builder\base\BaseBundle;
use builder\helper\App;

BaseBundle::register($this);

/** @var \yii\web\View $this view组件实例 */
/** @var string $content 主体内容 */
/** @var string $uiTheme UI主题 */

$uiTheme = !empty($this->params['uiTheme']) ? $this->params['uiTheme'] : 'ym2-theme-pink';
?>
<?php $this->beginPage() ?>
    <!DOCTYPE html>
    <html lang="<?= Yii::$app->language ?>" class="h-100">
    <head>
        <meta charset="<?= Yii::$app->charset ?>">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        <?php $this->registerCsrfMetaTags() ?>
        <?= \builder\helper\H5::appMetaTags() ?>
        <title><?= H5::encode($this->title) ?></title>
        <?php $this->head() ?>

        <!--Brand-->
        <script>
console.log(`
%c  ██╗   ██╗███╗   ███╗██████╗     ██████╗     %c
%c  ╚██╗ ██╔╝████╗ ████║╚════██╗   ██╔═████╗    %c
%c   ╚████╔╝ ██╔████╔██║ █████╔╝   ██║██╔██║    %c
%c    ╚██╔╝  ██║╚██╔╝██║██╔═══╝    ████╔╝██║    %c
%c     ██║   ██║ ╚═╝ ██║███████╗██╗╚██████╔╝    %c
%c     ╚═╝   ╚═╝     ╚═╝╚══════╝╚═╝ ╚═════╝     %c
`,
    "color:#0081ff;background:rgba(0,0,0,.01);",
    "color:#000000;background:rgba(0,0,0,0);",
    "color:#077cef;background:rgba(0,0,0,.02);",
    "color:#000000;background:rgba(0,0,0,0);",
    "color:#0d76dd;background:rgba(0,0,0,.03);",
    "color:#000000;background:rgba(0,0,0,0);",
    "color:#1775d1;background:rgba(0,0,0,.03);",
    "color:#000000;background:rgba(0,0,0,0);",
    "color:#1e71c3;background:rgba(0,0,0,.02);",
    "color:#000000;background:rgba(0,0,0,0);",
    "color:#246bb1;background:rgba(0,0,0,.01);",
    "color:#000000;background:rgba(0,0,0,0);",
);
        </script>
    </head>

    <body class="d-flex flex-column h-100 min-width800 <?= $uiTheme ?>" ng-cloak ng-app="ym2.app">
    <?php $this->beginBody() ?>

    <!--侧边菜单-->
    <?= App::menu() ?>

    <!--头部导航-->
    <?= App::nav() ?>

    <!--内容主体-->
    <main role="main" class="pl-180 flex-grow-1 pb-25 layui-row">
        <?= $content ?>
    </main>

    <!--尾部导航-->
    <footer class="pl-180 text-muted ym2-footer position-fixed fixed-bottom">
        <p class="float-left pl-3">
            <span><?= H5::encode(App::params('other.app.name')) ?>&nbsp;&copy;2017-<?= date('Y') ?></span>
            <span class="pl-2">技术支持 <a href="<?= App::params('other.technicalSupport') ?>"><?= App::params('other.technicalSupport') ?></a></span>
        </p>
    </footer>

    <?php $this->endBody() ?>
    </body>
    </html>
<?php $this->endPage();
